<!DOCTYPE html>
<!-- saved from url=(0049)http://zml:7888/index.php?s=/User/Info/index.html -->
<html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>会员中心 --芝麻乐开源众筹系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./5账号设置_files/pintuer.css">
<script src="./5账号设置_files/jquery-1.8.3.min.js"></script>
<script src="./5账号设置_files/pintuer.js"></script>
<script src="./5账号设置_files/respond.js"></script>
<script src="./5账号设置_files/layer.js"></script><link rel="stylesheet" href="./5账号设置_files/layer.css" id="layui_layer_skinlayercss" style="">
</head>
<body style="background:#e7e8eb">
<style>

.mynav li{width: 80px;height: 36px;line-height: 36px;float: left;text-align: center;margin-right: 5px;border-radius: 3px;position: relative;display: block;}

.mynav .active{background-color: #ea544a;}

.mynav .active a{color: #fff;}

</style>

<script type="text/javascript"> 

var Sys = {};

        var ua = navigator.userAgent.toLowerCase();

        if (window.ActiveXObject){

            Sys.ie = ua.match(/msie ([\d.]+)/)[1]

            if (Sys.ie<=7){

            alert('你目前的IE版本为'+Sys.ie+'版本太低，请升级！');location.href="http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie";

            }

        }

</script> 

<div class="x12 margin-big-bottom text-little padding-small bg-black text-pale" id="top">

    <div class="container">

        <span class="x2">欢迎来到芝麻乐开源众筹系统！</span>

        <span class="x10 text-right text-pale"><a href="http://zml:7888/index.php?s=/User/Index/index.html" class="text-pale">18211223344 进入用户中心</a> | <a href="http://zml:7888/index.php?s=/User/Login/logout.html" class="text-pale">退出</a></span>

    </div>

</div>

<div class="container-layout  bg-white">

    <div class="container padding-big-top padding-big-bottom">

        <div class="x12">

            <div class="x2">

                <a href="http://zml:7888/"><img src="./5账号设置_files/zmlcms_1445061661767.png" alt="芝麻乐开源众筹系统" class="img-responsive"></a>

            </div>

            <div class="x10 padding-top">

                <div class="x8">

                    <ul class="mynav text-big float-right padding-big-right">

                        <li><a href="http://zml:7888/">首页</a></li>

                        <li><a href="http://zml:7888/index.php?s=/Home/Item/index.html">项目</a></li>

                        <!--             <li><a href="#">动态</a></li> -->

                        <li><a href="http://zml:7888/index.php?s=/Home/News/index.html">新闻</a></li>

                    </ul>

                </div>

                <div class="x4">

                    <form id="form" action="http://zml:7888/index.php?s=/Home/Item/index.html" method="get">

                        <div class="input-group padding-little-top">
                            <div class="field">

                                <input type="text" class="input border-red" name="search" size="30" placeholder="项目名称">
                            </div>

                            <span class="addbtn"><button type="submit" class="button bg-red">搜!</button></span>

                        </div>

                    </form>

                </div>

            </div>

        </div>

    </div>

</div>

<script>

function select (){

    var content = $('input[name="search"]');

    if(content.val()==''){

        layer.tips("请填写搜索内容！","#content",{

            tips: 1

        })

        content.focus();

        return false

    } 
    window.location.href="/index.php/Home/Item/index/search/"+content.val()
}

</script>
<div class="container">

<div class="x12 margin-large-top border bg-white margin-large-bottom">

	<div class="x2" style="min-height:800px">

		<div class="x12 border-bottom padding-top padding-bottom text-center ">

			<a href="http://zml:7888/index.php?s=/User/Info"><img src="./5账号设置_files/user-logo.jpg" width="90" height="90" class="header radius-circle"></a>

			<h5 class="padding">18211223344</h5>

			
			<div class="txt-border txt-small radius-circle border sta" data-msg="&lt;span class=&#39;text-black&#39;&gt;你未通过实名认证，&lt;a href=&#39;/index.php?s=/User/Attest/index.html&#39; class=&#39;text-blue&#39;&gt;去认证&lt;/a&gt;&lt;/span&gt;"><div class="txt radius-circle icon-male"></div></div>
			<div class="txt-border txt-small radius-circle border sta" data-msg="&lt;span class=&#39;text-black&#39;&gt;您已绑定手机，&lt;a href=&#39;&#39; class=&#39;text-blue&#39;&gt;更改&lt;/a&gt;&lt;/span&gt;"><div class="txt radius-circle bg-red icon-tablet"></div></div>

			<a href="http://zml:7888/index.php?s=/User/Prepaid/index.html" class="txt-border txt-small radius-circle border "><div class="txt radius-circle bg-red ">充</div></a>

		</div>

		<div class="x12 border-bottom padding-bottom leftnav">	

			<a href="http://zml:7888/index.php?s=/User/index" class="button x12 border-none radius-none padding "><span class="padding-left">会员中心首页<span><span class="float-right icon-angle-right"></span></span></span></a>



			<span class="button x12 bg-gray radius-none">我是项目方</span>

			<a href="http://zml:7888/index.php?s=/User/Item/item_add.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">发布项目<span><span class="float-right icon-angle-right"></span></span></span></a>



			<a href="http://zml:7888/index.php?s=/User/Item/index.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">已发布的项目<span><span class="float-right icon-angle-right"></span></span></span></a>

	

			<a href="http://zml:7888/index.php?s=/User/Lead/index.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">领投管理<span><span class="float-right icon-angle-right"></span></span></span></a>



			<a href="http://zml:7888/index.php?s=/User/Item/interview.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">约谈管理<span><span class="float-right icon-angle-right"></span></span></span></a>

			

			<span class="button x12 bg-gray radius-none">我是投资方</span>



			<a href="http://zml:7888/index.php?s=/User/Investor/collect_item.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">我收藏的项目<span><span class="float-right icon-angle-right"></span></span></span></a>

			<a href="http://zml:7888/index.php?s=/User/Investor/with_item.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">我投资的项目<span><span class="float-right icon-angle-right"></span></span></span></a>

			<a href="http://zml:7888/index.php?s=/User/Investor/interview_item.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">我约谈的项目<span><span class="float-right icon-angle-right"></span></span></span></a>

			<a href="http://zml:7888/index.php?s=/User/Investor/lead.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">我领投的项目<span><span class="float-right icon-angle-right"></span></span></span></a>



			<span class="button x12 bg-gray radius-none">资金管理</span>



			<a href="http://zml:7888/index.php?s=/User/Funds/money_details.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">资金明细<span><span class="float-right icon-angle-right"></span></span></span></a>

			<a href="http://zml:7888/index.php?s=/User/Funds/payment_details.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">充值记录<span><span class="float-right icon-angle-right"></span></span></span></a>

			<a href="http://zml:7888/index.php?s=/User/Prepaid/index.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">我要充值<span><span class="float-right icon-angle-right"></span></span></span></a>



			<span class="button x12 bg-gray radius-none">个人中心</span>



			<a href="http://zml:7888/index.php?s=/User/Attest/index.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">我的认证<span><span class="float-right icon-angle-right"></span></span></span></a>

			<a href="http://zml:7888/index.php?s=/User/Info/index.html" class="button button-small x12 border-none radius-none padding bg-red"><span class="padding-large-left">账号设置<span><span class="float-right icon-angle-right"></span></span></span></a>

			<a href="http://zml:7888/index.php?s=/User/Dolog/index.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">消息中心<span><span class="badge bg-dot float-right">1条未读</span></span></span></a>

			<a href="http://zml:7888/index.php?s=/User/Bank/index.html" class="button button-small x12 border-none radius-none padding "><span class="padding-large-left">银行卡管理<span></span></span></a>

		</div>	

	</div>

	<script type="text/javascript">

		$(".sta").each(function(e){

			var msg=$(this).attr('data-msg');

			$(this).on("mouseover mouseout",function(event){

 			if(event.type == "mouseover"){

 				 var ii=layer.tips(msg, $(this), {

    				tips: [2,'#fff']

				});	

 			}else if(event.type == "mouseout"){

  				layer.close(ii)

			 }

			})			

						

		})

	</script>

<div class="x10  border-left" style="min-height:800px;">




<div class="x12 padding border-bottom height-big">
	<h5>基本信息</h5>	
</div>
<div class="clearfix"></div>
<div class="padding  x12">
	<div class="border x12">
	<div class="bg padding ">用户基本信息</div>	
		<div class="height-large padding border-bottom x12">
			<span class="text-gray x2">昵称</span>
			<span class="x9">
			<span onclick="edit(&#39;name&#39;,&#39;02121&#39;,this)">
			02121						<i class="text-gray">(点击修改)</i>
			</span>
			</span>
			
		</div>
		<div class="height-large padding border-bottom x12">
			<span class="text-gray x2">手机号</span>
			<span class="x9" id="domain">18211223344</span>
			<a href="http://zml:7888/index.php?s=/User/Info/edit_phone" class="text-blue">修改</a>
		</div>
		<div class="height-large padding border-bottom x12">
			<span class="text-gray x2">头像</span>
			<span class="x9"><img src="./5账号设置_files/user-logo.jpg" class="header" height="90"></span>
			<a class="input-file text-blue" href="javascript:void(0);">	
				上传
				<form id="myupload" action="http://zml:7888/Admin/Upload" method="post" enctype="multipart/form-data"><input size="100" type="file" id="fileupload" name="upfile"></form>
			</a>
		</div>
		<div class="height-large padding border-bottom x12">
			<span class="text-gray x2">年龄</span>
			<span class="x9" id="title">
			<span onclick="edit(&#39;age&#39;,&#39;12&#39;,this)">
			12						<i class="text-gray">(点击修改)</i>
			</span>
			</span>
		
		</div>
		<div class="height-large padding border-bottom x12">
			<span class="text-gray x2">性别</span>
			<span class="x9">
				<label> <input type="radio" onclick="savesex(&#39;0&#39;,this)" name="sex" value="0"> 未知 </label>
				<label> <input type="radio" onclick="savesex(&#39;1&#39;,this)" name="sex" value="0" checked=""> 男 </label>
				<label> <input type="radio" onclick="savesex(&#39;2&#39;,this)" name="sex" value="0"> 女 </label>
			</span>
		</div>
		<div class="height-large padding border-bottom x12">
			<span class="text-gray x2">住所</span>
			<span class="x9" id="desc">
				<select name="province" class="input input-auto" id="province" onchange="loadRegion(&#39;province&#39;,2,&#39;city&#39;,&#39;/index.php?s=/User/Region/index&#39;);">
				<option value="">省份/直辖市</option>
				<option value="110000" selected="">北京市</option><option value="120000">天津市</option><option value="130000">河北省</option><option value="140000">山西省</option><option value="150000">内蒙古自治区</option><option value="210000">辽宁省</option><option value="220000">吉林省</option><option value="230000">黑龙江省</option><option value="310000">上海市</option><option value="320000">江苏省</option><option value="330000">浙江省</option><option value="340000">安徽省</option><option value="350000">福建省</option><option value="360000">江西省</option><option value="370000">山东省</option><option value="410000">河南省</option><option value="420000">湖北省</option><option value="430000">湖南省</option><option value="440000">广东省</option><option value="450000">广西壮族自治区</option><option value="460000">海南省</option><option value="500000">重庆市</option><option value="510000">四川省</option><option value="520000">贵州省</option><option value="530000">云南省</option><option value="540000">西藏自治区</option><option value="610000">陕西省</option><option value="620000">甘肃省</option><option value="630000">青海省</option><option value="640000">宁夏回族自治区</option><option value="650000">新疆维吾尔自治区</option><option value="710000">台湾省</option><option value="810000">香港特别行政区</option>				</select>
				<select name="city" class="input input-auto " id="city" data-validate="required:请选择城市" onchange="loadRegion(&#39;city&#39;,3,&#39;area&#39;,&#39;/index.php?s=/User/Region/index&#39;);">
			
					<option value="110100">市辖区</option>
				</select>
				<select name="area" class="input input-auto" data-validate="required:请选择镇区" id="area">			
						<option value="110102">西城区</option>
				</select>		
				<input type="text" class="input input-auto" value="0212" id="address" name="address">		
			</span>
			<a href="http://zml:7888/index.php?s=/User/Info/index.html###" class="text-blue" onclick="saveaddress(this)">保存修改</a>
		</div>
		<div class="height-large padding   x12">
			<span class="text-gray x2">注册时间</span>
			<span class="x9"><span class="text-gray">2020-08-13 </span></span>
		</div>
		
	</div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="container-layout text-gray  bg-black bg-inverse padding-big-top padding-big-bottom margin-big-top">

    <div class="container text-small">

        <div class="x10 height-big margin-bottom">

			<a href="http://zml:7888/index.php?s=/User/Info/index.html#" class="padding-big-right text-gray">关于我们</a><a href="http://zml:7888/index.php?s=/User/Info/index.html#" class="padding-big-right text-gray">企业资质</a><a href="http://zml:7888/index.php?s=/User/Info/index.html#" class="padding-big-right text-gray">帮助中心</a><a href="http://zml:7888/index.php?s=/User/Info/index.html#" class="padding-big-right text-gray">操作说明</a><a href="http://zml:7888/index.php?s=/User/Info/index.html#" class="padding-big-right text-gray">免责声明</a><a href="http://zml:7888/index.php?s=/User/Info/index.html#" class="padding-big-right text-gray">联系我们</a>
        </div>

       

        <div class="x12 text-left text-little">版权所有 © 芝麻乐开源众筹系统 All Rights Reserved，赣ICP备：380959609 <a href="http://www.zhimale.com/">芝麻乐</a>版权所有</div>

    </div>

</div>

<div class="fixed-bottom-right margin-right" style="width:40px;right:10px;z-index: 99999;">

<!--     <div class="x12 txt radius-small bg-red margin-small-bottom icon-qrcode text-large"></div>

    <div class="x12 txt radius-small bg-red margin-small-bottom icon-pencil-square-o text-large"></div>

    <div class="x12 txt radius-small bg-red margin-small-bottom icon-question text-large"></div> -->

    <a href="javascript:;" onclick="slideFunction(&#39;top&#39;);"><div class="txt radius-small bg-red margin-small-bottom icon-arrow-up text-large"></div></a>

</div>


<script src="./5账号设置_files/form.js"></script>
<script src="./5账号设置_files/region.js"></script>
<script>
function saveaddress(d){
	var prov=$("#province").val();
	var city=$("#city").val();
	var area=$("#area").val();
	var address=$("#address").val();
	$.post('/index.php?s=/User/Info/edit',{province:prov,city:city,area:area,address:address},function(e){
		$("#address").val(address);
		layer.msg('更新成功', {shift: 2});
	})
}
function edit(name,id,d){
	var html='<input type="text" name="'+name+'" class="input input-auto" size="20" value='+id+' /> <button class="button" type="button" onclick="save(\''+name+'\',this)">保存</button>';
	$(d).parent().html(html);
}
function save(name,d,value){
	var v=$(d).siblings('input[name="'+name+'"]').val();
	if(name=='name'){
		$.post('/index.php?s=/User/Info/edit',{name:v},function(e){
			if(e.status=1){
				$(d).parent().text(v);
				layer.msg('更新成功', {shift: 2});
			}else{
				$(d).parent().text(v);
				layer.msg('更新失败', {shift: 2});
			}
		})
	}else if(name=='age'){
		$.post('/index.php?s=/User/Info/edit',{age:v},function(e){
			if(e.status=1){
				$(d).parent().text(v);
				layer.msg('更新成功', {shift: 2});
			}else{
				$(d).parent().text(v);
				layer.msg('更新失败', {shift: 2});
			}
		})
	}else if(name=='header'){
		$.post('/index.php?s=/User/Info/edit',{header:value},function(e){
			if(e.status=1){
				layer.msg('更新成功', {shift: 2});
			}else{
				layer.msg('更新失败', {shift: 2});
			}
		})
	}
}
function savesex(v,d){
	$.post('/index.php?s=/User/Info/edit',{sex:v},function(e){
			if(e.status=1){
				layer.msg('更新成功', {shift: 2});
			}else{
				layer.msg('更新失败', {shift: 2});
			}
	})
}

$(function () {
	var bar = $('.bar');
	var percent = $('.jindu');
	var showimg = $('.content');
	var progress = $(".jindu");
	var files = $(".files");
	var btn = $(".btn span");
	$("#fileupload").wrap("<form id='myupload' action='/Admin/Upload' method='post' enctype='multipart/form-data'></form>");
    $("#fileupload").change(function(){
		$("#myupload").ajaxSubmit({
			dataType:  'json',
			beforeSend: function() {
        		var index = layer.load(1, {
					shade: [0.1,'#fff'] //0.1透明度的白色背景
				});
    		},
			success: function(data) {
				if(data.status==0){
					layer.open({
						content:data.info,
						btn:['好的'],
						yes:function(){
							layer.closeAll()
						}
					})
				}else{
					var img = data.url;
					$(".header").attr('src',img);
					save('header','header',''+img+'');
					layer.closeAll()
					
				}
			}
		});
	});
	
});	

</script>

</body></html>